
window.onload = function(){

   var swiper =  new Swiper ('.firstLbt', {
            loop: true,
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            autoplay : {
                delay:3000
              },
            effect : 'fade',

            // scrollbar: '.swiper-scrollbar',
        })        
   var swiper =  new Swiper ('.syxlbt', {
            loop: true,
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            // scrollbar: '.swiper-scrollbar',
            autoplay : {
                delay:3000
              },
        })   
        
console.log($('.xFCLList span')[0]);

$($('.xFCLList span')[0]).css({'font-weight':'bold','opacity':'1','color':'#ffffff'})
$('#first').show()

console.log(document.documentElement.clientWidth);
if(document.documentElement.clientWidth<=1349){
    $('.last-list').width('18rem');
    console.log('chengle')
}else{
    $('.last-list').width('23rem');
}

    
}
status = false;

function changeList(temp,num){
    $('.xFCLList span').css({'font-weight':'normal','opacity':'0.6','color':'#ffffff'})
    $(temp).css({'font-weight':'bold','opacity':'1','color':'#ffffff'})
    switch(num){
        case 1:
        $('#first').show()
        $('#second').hide()
        $('#third').hide()
        break;
        case 2:
        $('#first').hide()
        $('#second').show()
        $('#third').hide()        
        break;
        case 3:
        $('#first').hide()
        $('#second').hide()
        $('#third').show()        
        break;


    }

}
function outList(temp){

}

$(function(){
    $(".first-nav").hover(function(){
        $(this).children("ul").show();
       
    },function(){
        $(this).children("ul").hide();
        
    } )
})